package ma.jeetconsulting.pocs.dependencies.profiler.domain;

import org.apache.maven.model.Dependency;

public class Util {
	
	private Util() {
		// you can't instanciate it ;)
	}
	
	public static Dependency mavenDependency(final String groupId, final String artifactId, final String version) {
		return new Dependency(){
			{setGroupId(groupId); setArtifactId(artifactId); setVersion(version);}
		};
	}
	
	public static ma.jeetconsulting.pocs.domain.Dependency dependency(final String groupId, final String artifactId, final String version) {
		ma.jeetconsulting.pocs.domain.Dependency dependency = new ma.jeetconsulting.pocs.domain.Dependency();
		dependency.setGroupId(groupId);
		dependency.setArtifactId(artifactId);
		dependency.setVersion(version);
		return dependency;
	}
}
